package com.sduept.component.message.model;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.sduept.core.entity.IdentifiedObject;

@Entity
@Table(name = "t_dict_alarmType_role")
public class AlarmReceiveRole extends IdentifiedObject {

	private static final long serialVersionUID = -4660416072193521778L;
	
	/**
	 * 消息类型
	 */
	private String alarmType;
	
	/**
	 * 短信接收角色
	 */
	private String receiveRole;
	
	/**
	 * 角色id
	 */
	private String roleId;
	
	/**
	 * 上级部门角色人员是否接收短信
	 * 在组织机构权限管理中，一个变电站可被多个部门查看
	 * 如果allReceive == true, 父部门下的拥有该角色的人员都能接收短信通知。
	 * 如果allReceive == false,父部门下的人员不接收短信通知。仅有该变电站的直属父部门下的人员收到短信
	 */
	private boolean allReceive;

	public String getAlarmType() {
		return alarmType;
	}

	public void setAlarmType(String alarmType) {
		this.alarmType = alarmType;
	}

	public String getReceiveRole() {
		return receiveRole;
	}

	public void setReceiveRole(String receiveRole) {
		this.receiveRole = receiveRole;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public boolean isAllReceive() {
		return allReceive;
	}

	public void setAllReceive(boolean allReceive) {
		this.allReceive = allReceive;
	}

}
